<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="https://cdn.jsdelivr.net/npm/vue"></script>
</head>

<body>
    <div id="app">
        <a v-bind:href="a1.url">{{a1.name}}</a><br>
        <a :href="a2.url">{{a2.name}}</a>
    </div>

    <script>
        new Vue({
            el: '#app',
            data: {
                a1: {
                    name: '百度',
                    url: 'http://www.baidu.com'
                },
                a2: {
                    name: '淘宝',
                    url: 'http://www.taobao.com'
                }
            }
        })
    </script>
</body>

</html>